package com.wfit.controller.app;

import com.wfit.dto.PayDto;
import com.wfit.result.Result;
import com.wfit.service.PayService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pay")
public class PayController {
@Autowired
private PayService payService;
    @RequestMapping("/submit")
    private Result submit(@RequestBody PayDto dto){
        Result result = payService.submitPay(dto);
        return result;
    }
}
